<?php

namespace app\index\controller;

use think\Controller;
use think\Request;
use think\Cache;

class Redis extends Controller
{
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {
        Cache::set('邱子豪','21');
        $a = Cache::get('邱子豪');
        return view('redis/index',[
            'a'=>$a
        ]);
    }
}
